<template>
  <div class="container">
    <Category title="美食">
      <img slot="center" src="https://img1.baidu.com/it/u=593184843,653430012&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=356" alt="">
      <a class="foot" slot="footer" href="https://www.atguigu.com">更多美食</a>
    </Category>
    <Category title="游戏">
      <ul slot="center">
        <li v-for="(item , index) in games" :key="index">{{item}}</li>
      </ul>
      <div class="foot" slot="footer">
        <a  href="https://www.atguigu.com">单机游戏</a>
        <a  href="https://www.atguigu.com">联机游戏</a>
      </div>
    </Category>
    <Category title="电影">
      <video controls slot="center" src="https://stream7.iqilu.com/10339/article/202002/18/2fca1c77730e54c7b500573c2437003f.mp4"></video>
      <!-- <template slot="footer"> 两种写法-->
      <template v-slot:footer>
        <div class="foot">
          <a class="foot" href="https://www.atguigu.com">经典</a>
          <a class="foot" href="https://www.atguigu.com">热门</a>
          <a class="foot" href="https://www.atguigu.com">在线</a>
        </div>
        <h4 class="foot">欢迎前来观影</h4>
      </template>
    </Category>
  </div>
</template>

<script>
  import Category from './components/Category.vue'
  export default {
  components: {Category},
    name:'App', 
    data () {
      return {
        foods:['辣椒炒肉','虎皮青椒','红烧肉','红烧牛腩'],
        games:['GTA5','双人成行','英雄联盟','穿越火线'],
        films:['肖申克的救赎','黑客帝国','星际穿越','误杀'],
        foodsPictrue:''
      }
    }
  }
</script>
<style scoped>
  .container,.foot{
    display: flex;
    justify-content: space-around;
  }
  img{
    width: 100%;
  }
  video{
    width: 100%;
  }
  
</style>